﻿<%@ Page EnableEventValidation="true" Language="C#" AutoEventWireup="true" CodeFile="NienKhoaDetails.aspx.cs" Inherits="DanhMucChung_NienKhoaDetails" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link rel="stylesheet" href="../css/pop-up.css"/>
<script type="text/javascript" src="../js/jquery-1.7.1.min.js"></script>
<script type="text/javascript" src="../js/popup.js"></script>


</head>
<body>
    <form id="form1" runat="server" method="post">
   	<section class="wrapper-nhom-don-vi wrapper-pop-up-width-500">
    	<header>
        	<h1 class="heading-pop-up-width-500"><asp:Label ID="lblTitle" runat="server" Text=""></asp:Label></h1>
            <ul class="top-icon-pop-up-width-500">
            	<li><a class="dropdown" data-dimension="800|200" href="#"></a></li>
                <li><a class="minimum" data-dimension="800|200" href="#"></a></li>
                <li><a class="maximum" data-dimension="100%|100%" href="#"></a></li>
                <li><a class="turn-off" data-dimension="800|200" href="#"></a></li>
            </ul>
        </header>
        <section class="clear">
            </section>
        <!--END .clear-->
        <section class="content-gan-nhom-quyen-su-dung  content-pop-up-width-500">
        	
            	<table class="table-nhom-don-vi table-pop-up-width-500">
                	<tr>
                    	<td>
                        	Mã niên khóa (*):
                        </td>
                        <td>
                        	<input class="box-nhap-pop-up-width-500" type="text" name="box-nhap-ma-quyen" placeholder="Nhập mã niêm khóa" id="txtMaNK" runat="server"/>
                        </td> 

                    </tr>
                    <tr>
                    	<td>
                        	Tên niêm khóa (*):
                        </td>
                        <td>
                        	<input class="box-nhap-pop-up-width-500" type="text" name="box-nhap-ma-quyen" placeholder="Nhập tên niêm khóa" id="txtTenNK" runat="server"/>
                        </td>

                    </tr>
                                <tr>
                    	<td>
                        	Năm (*):
                        </td>
                        <td>
                        	<input class="box-nhap-pop-up-width-500" type="text" name="box-nhap-ma-quyen" placeholder="Năm" id="txtNamNK" runat="server"/>
                        </td>
                    </tr>
                   <%-- <tr>
                    	<td>
                        	Danh mục cha
                        </td>
                        <td>
                        	<select class="combobox-pop-up-width-500" name="">
                         		<option value="Nhap-ten-danh-muc-cha">Nhập tên danh mục cha</option>
                         		<option value="ban">Ban</option>
                         		<option value="nganh">Ngành</option>
                         		<option value="nha-nuoc">Nhà nước</option>
                         	</select>
                        </td>                        
                    </tr>--%>                   
                </table>
                <section class="clear">
                </section><!--End .clear-->
            <section class="bottom-content">
                <section class="bottom-right-content">
            	<input class="button-pop-up" type="button" value="Cập nhật" id="btnUpdate" runat="server" OnServerClick="btnUpdate_Click"/>   
                <input class="button-pop-up" type="button" value="Hủy bỏ" onclick="Thoat()"/>            
                </section><!--END .bottom-right-content-->
            </section><!--End .bottom-content-->
        </section><!--End .content-->
    </section><!--END.wrapper-->
    </form>
</body>
</html>
<script type="text/javascript">
    function Thoat() {
            window.parent.closeColorBox();
    }

//$('document').ready(function ()
    $('#btnUpdate').click(function () {
        validateInPut();
    });
    function validateInPut() {
        if ($('#txtMaNK').attr("value") == "") {
            alert("Chưa nhập mã!");
            return false;
        }

        if ($('#txtTenNK').attr("value") == "") { //# null
            alert("Chưa nhập tên!");
            return false;
        }

        if ($('#namNK').attr("value") == "") {
            alert("Chưa nhập năm!");
            return false;
        }
        return true;
    }
</script>